import request from '@/utils/request'

// 查询dcn地市列表
export function listDcnCity(query) {
  return request({
    url: '/ipmanagement/dcnCity/list',
    method: 'get',
    params: query
  })
}

// 查询dcn地市详细
export function getDcnCity(id) {
  return request({
    url: '/ipmanagement/dcnCity/' + id,
    method: 'get'
  })
}

// 新增dcn地市
export function addDcnCity(data) {
  return request({
    url: '/ipmanagement/dcnCity',
    method: 'post',
    data: data
  })
}

// 修改dcn地市
export function updateDcnCity(data) {
  return request({
    url: '/ipmanagement/dcnCity',
    method: 'put',
    data: data
  })
}

// 删除dcn地市
export function delDcnCity(id) {
  return request({
    url: '/ipmanagement/dcnCity/' + id,
    method: 'delete'
  })
}
